using MaterialUI;
using UnityEngine;

public class Example13 : MonoBehaviour
{
	public void OnSimpleToastButtonClicked()
	{
		ToastManager.Show("Simple toast!");
	}

	public void OnCustomToastButtonClicked()
	{
		ToastManager.Show("Custom toast", 2f, GetRandomColor(), GetRandomColor(), UnityEngine.Random.Range(12, 36));
	}

	public void OnSimpleSnackbarButtonClicked()
	{
		SnackbarManager.Show("Simple snackbar", "Action", delegate
		{
			UnityEngine.Debug.Log("Action clicked");
		});
	}

	public void OnCustomSnackbarButtonClicked()
	{
		SnackbarManager.Show("Simple snackbar", 2f, GetRandomColor(), GetRandomColor(), UnityEngine.Random.Range(12, 36), "Custom", delegate
		{
			UnityEngine.Debug.Log("Action clicked");
		});
	}

	private Color GetRandomColor()
	{
		return new Color(UnityEngine.Random.Range(0f, 1f), UnityEngine.Random.Range(0f, 1f), UnityEngine.Random.Range(0f, 1f));
	}
}
